org.eclipse.vtp.desktop.editors.voice.editor
Class VoiceContentDialog

java.lang.Object
  extended by org.eclipse.jface.window.Window
      extended by org.eclipse.jface.dialogs.Dialog
          extended by org.eclipse.vtp.desktop.media.core.ContentDialog
              extended by org.eclipse.vtp.desktop.editors.voice.editor.VoiceContentDialog
All Implemented Interfaces:
java.util.EventListener, org.eclipse.jface.window.IShellProvider, org.eclipse.swt.events.ModifyListener, org.eclipse.swt.internal.SWTEventListener

public class VoiceContentDialog
extends ContentDialog
implements org.eclipse.swt.events.ModifyListener

A dialog for editing a list of content objects in a voice project.

Author:
Lonnie Pryor

Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.jface.window.Window
org.eclipse.jface.window.Window.IExceptionHandler
 
Field Summary
 
Fields inherited from class org.eclipse.vtp.desktop.media.core.ContentDialog
contents
 
Fields inherited from class org.eclipse.jface.dialogs.Dialog
blockedHandler, buttonBar, DIALOG_DEFAULT_BOUNDS, DIALOG_PERSISTLOCATION, DIALOG_PERSISTSIZE, dialogArea, DLG_IMG_ERROR, DLG_IMG_HELP, DLG_IMG_INFO, DLG_IMG_MESSAGE_ERROR, DLG_IMG_MESSAGE_INFO, DLG_IMG_MESSAGE_WARNING, DLG_IMG_QUESTION, DLG_IMG_WARNING, ELLIPSIS
 
Fields inherited from class org.eclipse.jface.window.Window
CANCEL, OK
 
Constructor Summary
VoiceContentDialog(org.eclipse.jface.window.IShellProvider parentShellProvider)
          Creates a new VoiceContentDialog.
VoiceContentDialog(org.eclipse.swt.widgets.Shell parentShell)
          Creates a new VoiceContentDialog.
 
Method Summary
protected  org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent)
           
 Content getContentItem()
           
 java.lang.String getItemName()
           
 void initialize(java.lang.String itemName, java.lang.String[] unavailableNames, Content contentItem, IMediaProvider mediaProvider)
          Sets the name, content item, and media provider for this dialog edits.
protected  boolean isContentValid()
          Returns true if the content of this dialog is valid and the OK button should be enabled.
 void modifyText(org.eclipse.swt.events.ModifyEvent e)
           
 
Methods inherited from class org.eclipse.vtp.desktop.media.core.ContentDialog
contentChanged, createContents, getVariables, setMediaProvider
 
Methods inherited from class org.eclipse.jface.dialogs.Dialog
applyDialogFont, buttonPressed, cancelPressed, close, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, create, createButton, createButtonBar, createButtonsForButtonBar, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getDialogBoundsSettings, getDialogBoundsStrategy, getImage, getInitialLocation, getInitialSize, getOKButton, initializeBounds, initializeDialogUnits, okPressed, setBlockedHandler, setButtonLayoutData, setButtonLayoutFormData, shortenText
 
Methods inherited from class org.eclipse.jface.window.Window
canHandleShellCloseEvent, configureShell, constrainShellSize, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getLayout, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, handleShellCloseEvent, open, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setShellStyle, setWindowManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VoiceContentDialog

public VoiceContentDialog(org.eclipse.swt.widgets.Shell parentShell)
Creates a new VoiceContentDialog.

Parameters:
parentShell - The shell to create the dialog from.

VoiceContentDialog

public VoiceContentDialog(org.eclipse.jface.window.IShellProvider parentShellProvider)
Creates a new VoiceContentDialog.

Parameters:
parentShellProvider - The shell provider to create the dialog from.
Method Detail

initialize

public void initialize(java.lang.String itemName,
                       java.lang.String[] unavailableNames,
                       Content contentItem,
                       IMediaProvider mediaProvider)
Sets the name, content item, and media provider for this dialog edits.

Parameters:
itemName - The name of the item being edited.
contentItem - The content item this dialog edits.
mediaProvider - The media provider this dialog uses.

getItemName

public java.lang.String getItemName()

getContentItem

public Content getContentItem()

isContentValid

protected boolean isContentValid()
Description copied from class: ContentDialog
Returns true if the content of this dialog is valid and the OK button should be enabled.

Overrides:
isContentValid in class ContentDialog
Returns:
True if the content of this dialog is valid and the OK button should be enabled.

createDialogArea

protected org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent)
Overrides:
createDialogArea in class ContentDialog

modifyText

public void modifyText(org.eclipse.swt.events.ModifyEvent e)
Specified by:
modifyText in interface org.eclipse.swt.events.ModifyListener